libxl: wait for state "connected" in libxl__device_disk_local_attach
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 29 May 2012 15:36:52 +0000 (16:36 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 29 May 2012 15:36:52 +0000 (16:36 +0100)
commitc0eab55ed74f6ea02edd7939731600653de18864
tree0fccf620b73933580bab9b97433ae561b78677ff
parent9ad60ac58df44d69c81c63cdd09ae43d6f41e1e8
libxl: wait for state "connected" in libxl__device_disk_local_attach

In order to make sure that the block device is available and ready to be
used, wait for state "connected" in the backend before returning.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
[ ijc -- resolved simple conflict in libxl__device_disk_local_detach ]
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c